<template>
<div>
<Modal v-model="modalEdit" fullscreen @on-cancel="handleModalEditCancel" 
@on-ok="handleModalEditOK" ok-text="提交">
	<template #header>
		<Icon custom="iconfont icon-Word"/>&nbsp;卷宗封面&nbsp;
	</template>
	<div><Row justify="center"><Col span="16">
		<Card title="卷宗封面" icon="ios-bookmark">
			<template #extra>
				{{baseform.party_name}}&nbsp;&nbsp;涉嫌&nbsp;&nbsp;{{baseform.cause_name}}
			</template>
			<span>处理结果</span>
			<Input v-model="baseform.results" maxlength="100" show-word-limit :rows="5"
			type="textarea" placeholder="请输入处理结果" style="width: 100%" />
		</Card>
	</Col></Row></div>
</Modal>
</div>
</template>

<script>
import {dateUtils,appendDoc} from '@/libs/tools.js'
import config from '@/config'
export default{
	data(){
		return {
			modalEdit:true,
			baseform:{
				messageNotice:false
			}		
		}
	},
	methods:{
		handleModalEditCancel(){
			this.$router.go(-1)
		},
		handleModalEditOK(){
			let data={...this.baseform}
			data.docs=appendDoc(data.docs,"doc402")
			this.$axios.post('mainCase1CreateDoc402.action',data).then(res=>{
				window.open(config.baseUrl+res.data,'_blank')
			})
			this.$router.go(-1)
		}
	},
	mounted(){
		this.$axios.post('mainCase1GetDoc402.action',{
			case_no:this.$route.query.case_no,
			party_type:this.$route.query.party_type
		}).then(res=>{
			this.baseform={...this.baseform,...res.data}
		})
	}
}
</script>

<style>
</style>